<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	new Promise(resolve=>{
		setTimeout(()=>{
			console.log(1)
			resolve(3);
			console.log(2)
		})
	}).then(value=>{
		console.log(value);
		return 100;
	}).then(value=>{
		console.log(value)
	})
</script>
</html>